<template>
  <div class="analysisContent">
    <div class="content">
      <div class="realTimeData">
        <div class="monitorList">
          <tableListMinute
            :hisDataList="monitorData.realdata"
            :height="tableHeight"
          ></tableListMinute>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import { mapGetters } from "vuex";
import tableListMinute from "@/components/tableListMinute.vue";
export default {
  name: "analysisContent",
  props: ["monitorData"],
  components: {
    tableListMinute,
  },
  computed: {
    ...mapGetters({
      userInfo: "getUserInfo",
    }),
    tableHeight() {
      return document.body.clientHeight - 240 + "px";
    },
  },
};
</script>

<style scoped>
.analysisContent {
  width: 100%;
  height: 100%;
}
.taps {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 30px;
  line-height: 30px;
}
.taps .tapsItem {
  width: 23%;
  height: 100%;
  line-height: inherit;
  text-align: center;
  background-color: #47acff;
  color: #fff;
  border-top-right-radius: 4px;
  border-top-left-radius: 4px;
  cursor: pointer;
  transition: 0.25s ease;
}
.taps .tapsItem.active {
  background-color: #fff;
  color: #47acff;
}
.taps .tapsItem .tapsIcon {
  width: 14px;
  height: auto;
  vertical-align: middle;
  margin-right: 6px;
}

.content {
  box-sizing: border-box;
  height: calc(100%);
  overflow: auto;
  background-color: #fff;
  padding: 12px;
  padding-bottom: 0px;
}
.content .realTimeData,
.realTimeData .monitorList {
  height: 100%;
}

/* 修改滚动条样式 */
.content::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
.content::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 10px;
}
.content::-webkit-scrollbar-thumb {
  background: #ccdaf3;
  border-radius: 10px;
}
.content::-webkit-scrollbar-thumb:hover {
  background: #789ddc;
}

.unitContent {
}
.unitContent .unitItem {
  display: inline-block;
  width: 33%;
  line-height: 35px;
}
.unitContent .unitItem .laber {
  font-weight: bold;
}
.unitContent .factor {
  width: 80%;
  margin: 22px auto;
  text-align: center;
}

.canClick {
  cursor: pointer;
}
.canClick span {
  text-decoration: underline;
}
</style>
